//
//  JsonParser.h
//  Bus
//
//  Created by wangjiajia on 13-7-30.
//  Copyright (c) 2013年 wangjiajia. All rights reserved.
//

#import <Foundation/Foundation.h>
@class LoginResult;
@class NewsInfo;
@class RepDetail;
@class UserForm;
@class ProcessResult;
@class WorkFlowNode;
@class NextStep;
@class DepNode;
@class People;

@interface JsonParser : NSObject

+(LoginResult *)parseAsLoginResult:(NSString *) jsonResponse;

+(NSMutableArray *)parseAsNews:(NSString*)jsonResponse;

+(NewsInfo*)parseAsNewsInfo:(NSString*)jsonResponse;

+(NSMutableArray*)parseAsProfit:(NSString*) jsonResponse;

+(NSMutableArray*)parseAsRepTimeList:(NSString*)jsonResponse;

+(NSMutableArray*)parseAsRepDepList:(NSString*) jsonResponse;

+(RepDetail *)parseAsRepDetail:(NSString *)jsonResponse;
#pragma mark- 工作流
+(NSMutableArray *)parseAsWFForm:(NSString *)jsonResponse;
+(NSMutableArray *)parseAsUserForms:(NSString *)jsonResponse;
+(UserForm *)parseAsUserForm:(NSString *)jsonResponse;
+(NSArray *)parseAsReadOnlyForm:(NSString *)jsonResponse;
+(ProcessResult *)parseAsProcessResult:(NSString *)jsonResponse;
+(WorkFlowNode *)parseAsWorkFlowNode:(NSString *)jsonResponse;
+(NSMutableArray *)parseAsNextStep:(NSString *)jsonResponse;
+(NSMutableArray *)parseAsDepNode:(NSString *)jsonResponse;
+(NSMutableArray *)parseAsPeoples:(NSString *)jsonResponse;
+(NSString* )parseAsTotalNum:(NSString *)jsonResponse;
@end
